package com.service.bank.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.client.model.pojo.bank.ArElectronic;
import com.client.model.system.ElectronicUserVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author liuwenju
* @description 针对表【ar_electronic】的数据库操作Mapper
* @createDate 2024-04-01 20:55:27
* @Entity com.service.bank.pojo.ArElectronic
*/
public interface ArElectronicMapper extends BaseMapper<ArElectronic> {


    void save(@Param("uid") Long uid,@Param("card") String card);

    void setPayPassword(@Param("payPassword") String payPassword,@Param("uid")Long uid);

    ElectronicUserVo findNamePhone(@Param("realName") String realName, @Param("mobile")String mobile);




    Integer selectUid(Long uid);

//    ArElectronic selectByEid(@Param("moblie") String moblie, @Param("bankCard") String bankCard);


    @Select("select pay_password from ar_electronic where card = #{card}")
    String SelectPass(String card);

    @Select("select card from ar_electronic where uid = #{uid}")
    List<ArElectronic> selectLists(Long uid);

    @Select("select * from ar_electronic where uid = #{uid}")
    ArElectronic selectEid(Long uid);

    Integer findPassword(@Param("payPassword")String payPassword,@Param("uid")Long uid);

    Long findBalance(String bankCard);




    Long findTid(String bankCards);

    Integer findTids(String bankCard);

    Long SeectByUid(Long uid);
}




